export default {
    dealBuyShow(state,data){
        let temp = {};
        let tempList = [];
        let currentStore = this.getters.currentStoreFn;
        if(data.list){
            for(let value of data.list){
                temp = {
                    dataInfo:value.dataInfo,
                    hadLiked:value.hadLiked,
                    mediaContents:value.mediaContents,
                    mediaComment:value.mediaComment,
                    userName: value.userName,
                    mediaType:value.mediaType,
                    id:value.id,
                    isNeedContentShare:false,
                    storeId:currentStore && currentStore.storeId ? currentStore.storeId : 0,
                    isNeedLocation:true,
                    isNeedLike:true,
                    isNeedComment:false,
                    isNeedShare:true,
                    isNeedServer:true,
                };
                tempList.push(temp);
            }
        }
        state.buyShow.commont = tempList;
        state.buyShow.message = Object.assign({},state.buyShow.message,data);
    },
}